<?php

use Illuminate\Database\Seeder;
use App\User;
use App\UserProfile;

class UsersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        for ($i = 0; $i < 20; $i++) {
            $user = factory(User::class)->create();
            factory(UserProfile::class)->create([
                'user_id' => $user->id,
            ]);
        }
    }
}
